const {src,dest}=require('gulp')
const cleanCss=require('gulp-clean-css')
const rename=require('gulp-rename')

const style=()=>{
  return src('src/*.css')
  .pipe(cleanCss())  //压缩css代码
  .pipe(rename({extname:'.min.css'})) //修改后缀名
  .pipe(dest('dist'))
}

module.exports={
  style
}
